import { aiRequest } from '../utils/request'

// 生成当日待办总结
export const generateDailySummary = () => {
  return aiRequest.post('/api/ai/summary/daily')
}

// 生成本周待办总结
export const generateWeeklySummary = () => {
  return aiRequest.post('/api/ai/summary/weekly')
}

// 生成自定义日期范围的待办总结
export const generateCustomSummary = (startDate, endDate) => {
  return aiRequest.post('/api/ai/summary/custom', null, {
    params: { startDate, endDate }
  })
}

// 测试AI连接
export const testAiConnection = (provider = 'openai') => {
  return aiRequest.post('/api/ai/test', null, {
    params: { provider }
  })
} 